package com.luych.toolbox.data.service.dao;

import com.luych.toolbox.data.service.entity.DataUpgradeDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface DataUpgradeDetailDao extends JpaRepository<DataUpgradeDetail, String>, JpaSpecificationExecutor<DataUpgradeDetail> {

    List<DataUpgradeDetail> findByDataUpgradeId(String dataUpgradeId);

    List<DataUpgradeDetail> findByDataSourceId(String dataSourceId);

    int countByDataAgentId(String dataAgentId);

    int countByDataSourceId(String dataSourceId);

    void deleteByDataProjectId(String dataProjectId);

}